import request from '@/utils/request'

// 年度监测断面上报 列表
const monitorSectionReportList = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/getList`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 列表按钮状态显示
const buttonState = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/getButtonState`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 编辑数据表格
const editDataInfo = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/getSectionReports`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 所有已选中数据
const selectedDataInfo = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/getSectionReportsOn`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 编辑保存
const updateMonitorSectionReport = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/update`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 归档
const filingMonitorSectionReport = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/filing`,
    method: 'post',
    data: params,
  })
}

// 年度监测断面上报 上报
const reportMonitorSection = function (params = {}) {
  return request({
    url: `/zy-api/api/sectionReport/report`,
    method: 'post',
    data: params,
  })
}

export {
  monitorSectionReportList,
  buttonState,
  editDataInfo,
  updateMonitorSectionReport,
  filingMonitorSectionReport,
  reportMonitorSection,
  selectedDataInfo
}